<html>
<head>
    <meta charset="utf-8">
    <title>发送历史</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    {{template "header"}}

</head>
<body layadmin-themealias="green-header">

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">发送历史</div>
                <div class="layui-card-body" pad15="">
                    <div class="layui-form-pane">
                        <table class="layui-table layui-hide" id="test" lay-filter="test"></table>

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


</body>
{{template "footer"}}

<script>
    layui.use('table', function () {
        var table = layui.table;
        var url = '/PageHistory?type=my'
        //console.log("url=", url)
        table.render({
            elem: '#test',
            url: url,
            toolbar: '#toolbarDemo', //开启头部工具栏，并为其绑定左侧模板
            defaultToolbar: ['filter', 'exports', 'print'],
            title: '发送历史',
            cellMinWidth: 80, //全局定义常规单元格的最小宽度，layui 2.2.1 新增
            cols: [[
                {field: 'id', title: '序号', sort: true, align: 'center', width: 80},
                {field: 'phone', title: '账号', sort: true, align: 'center', width: 160},

                {field: 'user_to_phone', title: '收信人电话', align: 'center', width: 200},
                {field: 'date', title: '发送时间', align: 'left', width: 200},
                {field: 'md_5_sms', title: '收信内容', align: 'left',},
            ]],
            page: true, limits: [20, 50, 100],
            limit: 100,
        });
    });

</script>
</html>